package com.small.os.minio.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.small.os.minio.entity.AqShareInfo;
import com.small.os.minio.mapper.AqShareInfoMapper;
import com.small.os.minio.service.IAqShareInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 分享详情 服务实现类
 * </p>
 *
 * @author wangguochao
 * @since 2020-10-20
 */
@Service
public class AqShareInfoServiceImpl extends ServiceImpl<AqShareInfoMapper, AqShareInfo> implements IAqShareInfoService {

    @Override
    public void delByMd5(String md5) {
        LambdaQueryWrapper<AqShareInfo> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(AqShareInfo::getFileMd5, md5);
        remove(wrapper);
    }
}
